package com.my.main.base.impnexp;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

//import cn.yqsoft.esp.base.po.AquaticSeedlingLicense;

class Ekko{
	@PoExcelAnnotation(title = "姓名")
	private String name;
	@PoExcelAnnotation(title = "性别")
	private Boolean sex;
	@PoExcelAnnotation(title = "金钱")
	private Double price;
	@PoExcelAnnotation(title = "年龄")
	private Integer age;
	@PoExcelAnnotation(title = "时间")
	private Date  date;
	public Ekko() {
		
	}
	public Ekko(String name,Boolean sex, Double price,Integer age,Date date) {
		super();
		this.name = name;
		this.age = age;
		this.price = price;
		this.sex = sex;
		this.date = date;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Boolean getSex() {
		return sex;
	}
	public void setSex(Boolean sex) {
		this.sex = sex;
	}
	public Double getPrice() {
		return price;
	}
	public void setPrice(Double price) {
		this.price = price;
	}
	public Integer getAge() {
		return age;
	}
	public void setAge(Integer age) {
		this.age = age;
	}
	
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	@Override
	public String toString() {
		return "Ekko [name=" + name + ", sex=" + sex + ", price=" + price + ", age=" + age + ", date=" + date + "]";
	}


	public static List<Ekko> addList(Integer index) {
		List<Ekko> list = new ArrayList<Ekko>();
		for(int i=0;i<index;i++) {
			Ekko ek = new Ekko(""+(int)(Math.random()*100),(int)(Math.random()*100)%2==0,(double)(Math.random()*100),(int)(Math.random()*100),new Date());
			list.add(ek);
		}
		return list;
	}
	
//	public static void main(String[] args) throws Exception  {
//	/*	List<Ekko>sysUserList = addList(10);
//		ExcelErrorMesg ex = new ExcelExpUtil().isExpSuccess(sysUserList, Ekko.class, "Excel测试导入表");
//		String path = ex.getFilePath();
//		System.out.println(path);*/
//		List list = new ExcelImpUtil().isImpSuccess("C:\\Users\\my\\Downloads\\1794369316447615.xls",AquaticSeedlingLicense.class, 2);
//		System.out.println(list);
//		System.out.println(list.size());
//	}
	
}
